﻿using System.Text; 
using System;
using System.Collections.Generic;
using Wedo.Domain.Models;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Wedo.Recognition.Domain.Models
{
    /// <summary>
    /// 银行信息
    /// </summary>
    [DisplayName("银行信息")]
    [System.ComponentModel.DataAnnotations.Table("Bank")]
    public  class Bank : Entity
    {
        /// <summary>
        /// 银行名称
        /// </summary>
        //[DataColumn(1, 60)]
        [DisplayName( "银行名称")]
        [Required(ErrorMessage = RequiredErrorMessage.DefaultMsg)]
        public string BankName { set; get; }

        /// <summary>
        /// 货币类型
        /// </summary>
        //[DataColumn(2, 60)]
        [DisplayName( "货币类型")]
        [Required(ErrorMessage = "{0} 不能为空！")]
        public string Currency { set; get; }

        /// <summary>
        /// 银行编号
        /// </summary>
        //[DataColumn(3, 60)]
        [Required(ErrorMessage = "{0} 不能为空！")]
        [DisplayName( "银行编号")]
        public string BankCode { set; get; }
    }
}
